package cn.inface.cn.jiekou4;

public class Warrior implements Fightable {
   int  experience,boold;
    @Override
    public void win() {
      this.experience+=5;
        System.out.println("您胜利了！");
        System.out.println("经验值增加："+this.experience);
    }

    @Override
    public int injure(int x) {
        this.boold-=x;
        System.out.println("您受伤了，血量减少为："+this.boold);
        if(x<=MAX&&x>=MAX/2){
            System.out.println("您的血量值过低！");
        }
        return this.boold;
    }
}
